{% extends "admin/base.html" %}

{% block main %}
	<div class='main'>
	{% if users %}
		
		<table class='list'>
		<tr>
			<th>登录名</th>
			<th>称呼</th>
			<th>Email</th>
			<th>最后登录</th>
			<th>&nbsp;</th>
		</tr>
		{% for user in users %}
		<tr class="{{ loop.cycle('', 'alt') }}">
			<td><a href='/admin/users/{{ user.id }}/'>{% if user.isroot %}<strong>{{ user.username }}</strong>{% else %}{{ user.username }}{% endif %}</a></td>
			<td>{{ user.namealias }}</td>
			<td>{{ user.email }}</td>
			<td>{{ user.lastlogindate_dt|datetimeformat('%Y-%m-%d %H:%M') }}</td>
			<td><a href='/admin/users/{{ user.id }}/delete/' class='del'>删除</a></td>
		</tr>
		{% endfor %}
		</table>
		
	{% else %}
		<span class='notify'>没有用户。</span>
	{% endif %}
	</div>
{% endblock %}